package com.xinhe.web.reposity;

import com.xinhe.web.entity.Studio;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface StudioRepository  extends JpaRepository<Studio, Long> {
    @Query(value = "select count(1) from tb_studio where removed=0 and f_user_id=?1", nativeQuery = true)
    Integer findByUserId(Long userId);

}
